package src.fantasma;

public class Posicion {

	private int posX;
	private int posY;
	
	public Posicion (int posX, int posY){
		this.posX= posX;
		this.posY= posY;
	}
	
	public void setPosX (int posX){
		this.posX= posX;
	}
	
	public void setPosY (int posY){
		this.posX= posY;
	}
	
	public int getPosX(){
		return this.posX;
	}
	
	public int getPosY(){
		return this.posY;
	}
	
	public boolean comparateTo(Posicion otraPosicion){
		return (this.posY == otraPosicion.getPosY() && 
				this.posX == otraPosicion.getPosX()     );
	}
	
}
